<?php
class Util {
	public static function filename_add_suffix($filename, $suffix)
	{
		$name_end = strrpos($filename, ".");
		$name = substr($filename, 0, $name_end);
		$extension = substr($filename, $name_end);
		
		return "$name$suffix$extension";
	}
}
